<!DOCTYPE html>
<html>
<head>
    <title>Loglevel Example</title>
    <script src="https://cdn.jsdelivr.net/npm/loglevel@1.7.0/dist/loglevel.min.js"></script>
</head>
<body>
    <script>
        if(log){
            console.log('11111');
        }
        // 设置日志级别
        log.setLevel("trace");
 
        // 打印日志
        log.trace("Trace message","fxxx",'aaa'); // 不会显示，因为当前级别是 info
        log.debug("Debug message","fxxx",'aaa'); // 不会显示
        log.log("log message","fxxx",'aaa'); // 会显示
        log.info("Info message","fxxx",'aaa'); // 会显示
        log.warn("Warn message","fxxx",'aaa'); // 会显示
        log.error("Error message","fxxx",'aaa'); // 会显示
    </script>
</body>
</html>
